# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test02
# Description:  通过索引操作序列元素
# Author:       ASUS
# Date:         2019/1/18
#-------------------------------------------------------------------------------


names=["Bill","Mary","Jack"]
print(names[0])                    #运行结果：Bill
print(names[2])                    #运行结果：Jack
print(names[-1])                   #运行结果：Jack
print(names[-2])                   #运行结果：Mary



